package org.bigdata.framework.core.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 
 * </p>
 *
 * @author dal.anhuifeng
 * @since 2017-10-17
 */
@TableName("community_knowledge")
public class CommunityKnowledge implements Serializable {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;

	/**
	 * 所属分类
	 */
	@TableField(value="category_id")
	private Integer categoryId;

	/**
	 * 中文名称
	 */
	@TableField(value="name_zh")
	private String nameZh;

	/**
	 * 英文名称
	 */
	@TableField(value="name_en")
	private String nameEn;

	/**
	 * 封面图片
	 */
	private String cover;

	/**
	 * 描述
	 */
	private String description;

	/**
	 * 是否推荐（0-否 1-推荐）
	 */
	private Integer recommend;

	/**
	 * 状态（0-正常 1-禁用）
	 */
	private Integer status;

	/**
	 * 排序
	 */
	private Integer sort;

	/**
	 * 所属领域
	 */
	@TableField(value="domain_id")
	private Integer domainId;

	/**
	 * 收藏数
	 */
	@TableField(value="collect_count")
	private Integer collectCount;

	/**
	 * 收录数
	 */
	@TableField(value="submit_count")
	private Integer submitCount;

	/**
	 * 关注数
	 */
	@TableField(value="follower_count")
	private Integer followerCount;



	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}

	public String getNameZh() {
		return nameZh;
	}

	public void setNameZh(String nameZh) {
		this.nameZh = nameZh;
	}

	public String getNameEn() {
		return nameEn;
	}

	public void setNameEn(String nameEn) {
		this.nameEn = nameEn;
	}

	public String getCover() {
		return cover;
	}

	public void setCover(String cover) {
		this.cover = cover;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getRecommend() {
		return recommend;
	}

	public void setRecommend(Integer recommend) {
		this.recommend = recommend;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Integer getDomainId() {
		return domainId;
	}

	public void setDomainId(Integer domainId) {
		this.domainId = domainId;
	}

	public Integer getCollectCount() {
		return collectCount;
	}

	public void setCollectCount(Integer collectCount) {
		this.collectCount = collectCount;
	}

	public Integer getSubmitCount() {
		return submitCount;
	}

	public void setSubmitCount(Integer submitCount) {
		this.submitCount = submitCount;
	}

	public Integer getFollowerCount() {
		return followerCount;
	}

	public void setFollowerCount(Integer followerCount) {
		this.followerCount = followerCount;
	}

}
